using System;
using Cleverscape.UTorrentClient.WebClient;

namespace uTorrentNetClient.ModelDesign.Helper
{
    public class SpeedHelper
    {
        public SpeedHelper(long speed)
        {
            Time = DateTime.Now;
            Speed = speed;
            SpeedS = Utilities.FormatFileSize(speed, Utilities.FileSizeFormat.SpeedBytes);
        }

        public SpeedHelper(DateTime time, long speed)
        {
            Time = time;
            Speed = speed;
            SpeedS = Utilities.FormatFileSize(speed, Utilities.FileSizeFormat.SpeedBytes);
        }

        public DateTime Time { get; private set; }
        public long Speed { get; private set; }
        public string SpeedS { get; private set; }

    }
}